package com.weyoung.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weyoung.admin.dto.req.*;
import com.weyoung.common.model.entity.UserDO;

import java.util.Date;
import java.util.List;

public interface DisplayService extends IService<UserDO> {
    /**
     * 时间段内用户新增数查询结构
     * @param startTime  起始时间
     * @param endTime    终止时间
     * @return
     */
    Long getCountByTimes(Date startTime, Date endTime);

    Long getAgeByTimes(Date startTime, Date endTime);

    Long getCountByAddress(String address);


    Long getFamilyCount();

    Long getFamilyCountByAddress(String family_address);

    Long getManCount();

    Long getWomanCount();


    List<GroupUserDTO> getAddressGroupUserCount();

    List<GroupFamilyDTO> getAddressGroupFamilyCount();

    List<GroupGenderDTO> getGenderCount();

    List<GroupAgeDTO> getGroupAges();

    List<GroupMonthDTO> getGroupMonths();

    List<FamilySortDTO> getFamilyRank();
}
